package org.wxd.common.utils.http;

/**
 * Created by wangxd on 2016/12/17.
 */
public enum HttpContentType {
    JSON("application/json"),TEXT("text/plain");

    public static boolean isJSON(HttpContentType type){
        return type.compareTo(JSON) == 0;
    }
    public static boolean isTEXT(HttpContentType type){
        return type.compareTo(TEXT) == 0;
    }

    HttpContentType(String name){
        this.name = name;
    }
    private String name;

    public String getName() {
        return name;
    }
}
